Skip to contentSkip to conversation

Slow concurrent reads on mounted loopback images

DISCUSSION GRANGER Nicolas 2 participants 2 messages Mar 21, 2024 – Mar 22, 2024

lore
Share & tools
lore
#0 lore raw

Hi erofs team,

I'm working on a small daemon that caches and mounts disk images containing datasets based on usage (https://github.com/CEA-LIST/scratch_manager).

My understanding is that this is a good use-case for EROFS. However, in my experience concurrent reads on loopback mounted disk images are rather slow.

I tested both squashfs and erofs images so I don't think it is specific to erofs, I just can't figure out where the bottleneck is. By any chance would you have any any tips to share on that subject?

Best,

Nicolas Granger

#1 lore raw

Hi GRANGER,

Quoted 8 lines · GRANGER Nicolas

Hi erofs team,

I'm working on a small daemon that caches and mounts disk images containing datasets based on usage (https://github.com/CEA-LIST/scratch_manager <https://github.com/CEA-LIST/scratch_manager>).

My understanding is that this is a good use-case for EROFS. However, in my experience concurrent reads on loopback mounted disk images are rather slow.

I tested both squashfs and erofs images so I don't think it is specific to erofs, I just can't figure out where the bottleneck is. By any chance would you have any any tips to share on that subject?

Thanks for the information. I don't know more about "scratch_manager", but does "scratch_manager" really use loopback devices? if yes, which kernel version are you using, and could you try with loop direct-io mode?

Later the EROFS project will land native solutions for dataset and AI models and we will evaluate this use cases formally.

Thanks,
Gao Xiang

Quoted 6 lines

Best,

Nicolas Granger